import axios from '@/libs/api.request'

export const getParameters = (val) => {
  return axios.request({
    url: 'api/HttpAutoTestService/parameter/',
    params: val,
    method: 'get'
  })
};

export const createParameter = (parameter) => {
  return axios.request({
    url: 'api/HttpAutoTestService/parameter/',
    data: parameter,
    method: 'post'
  })
};

export const updateParameter = (parameter) => {
  return axios.request({
    url: `api/HttpAutoTestService/parameter/${parameter.id}/`,
    data: parameter,
    method: 'put'
  })
};